package com.sz.admin.system.pojo.po;

import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 文件监控表实体类
 *
 * @author sz-admin
 * @since 2025-01-13
 */
@Data
@Table(value = "sys_file_monitor")
@Schema(description = "文件监控表")
public class SysFileMonitor implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Id(keyType = KeyType.Auto)
    @Schema(description = "监控ID")
    private Long id;

    @Schema(description = "监控路径")
    private String monitorPath;

    @Schema(description = "存储目录")
    private String storageDir;

    @Schema(description = "监控状态（1:启用 0:停用）")
    private String status;

    @Schema(description = "文件类型过滤（如：jpg,png,gif）")
    private String fileTypes;

    @Schema(description = "最大文件大小（字节）")
    private Long maxFileSize;

    @Schema(description = "是否删除源文件（1:是 0:否）")
    private String deleteSource;

    @Schema(description = "描述")
    private String description;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @Schema(description = "更新时间")
    private LocalDateTime updateTime;

    @Schema(description = "创建人ID")
    private Long createId;

    @Schema(description = "更新人ID")
    private Long updateId;

    @Schema(description = "删除标识")
    private String delFlag;

}